import java.util.Scanner;

public class Test {
    public static double Max(int c, int d,int e) {
        if(c > d) {

        }
    }
    public static int Max(int a, int b) {
        if(a > b) {
            return a;
        }
        else
            return b;
    }
    public static void main(String[] args) {
        //在同一个类中定义多个方法：要求不仅可以求2个整数的最大值，还可以求3个小数的最大值？
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int max1 = Max(a,b);
        double c = scan.nextDouble();
        double d = scan.nextDouble();
        double e = scan.nextDouble();
        int max2 = Max(c,d,e);
    }
    //小数的求和
    public static double Add(double c, double d) {
        return c + d;
    }
    //整数的求和
    public static int Add(int a, int b) {
        return a + b;
    }
    public static void main7(String[] args) {
        //求和的重载（重载条件：方法名称相同，参数类型不同，返回值不影响）
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int sum1 = Add(a,b);
        System.out.println(sum1);
        double c = scan.nextDouble();
        double d = scan.nextDouble();
        double sum2 = Add(c,d);
        System.out.println(sum2);

    }
    public static int Fib(int n) {
        if(n <= 2) {
            return 1;
        }
        else {
            return Fib(n-1) + Fib(n-2);
        }
    }
    public static void main6(String[] args) {
        //菲波拉契数列，利用迭代的方法求
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int fib = Fib(n);
        System.out.println(fib);
    }
    public static void main5(String[] args) {
        //求阶乘的和
        //1！+2！+3！+4！+........+n!的和
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int ret = 1;
        int sum = 0;
        for(int i = 1; i <= n; i++) {
            //产生阶乘
            ret *= i;
            sum += ret;
        }
        System.out.println(sum);
    }
    public static void main4(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();//输入所要求的阶乘的数字
        int ret = 1;
        for(int i = 1; i <= n; i++) {
            ret *= i;
        }
        System.out.println("N! = " + ret);
    }
    public static int Max3(int max2, int c) {
         return Max2(max2,c);
    }
    public static int Max2(int a, int b) {
        if(a > b) {
            return a;
        }
        else {
            return b;
        }
    }
    public static void main3(String[] args) {
        //实现输入三个数,来比较大小
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        int max2 = Max2(a,b);
        int max3 = Max3(max2,c);
        System.out.println("max3 = " + max3);
    }
    public static void main2(String[] args) {
        //打印x，输入n，n代表行数
        Scanner scan = new Scanner (System.in);
        while(scan.hasNextInt()) {
            int n = scan.nextInt();
            //控制行,并且打印*
            for(int i = n; i > 0; i--) {
                System.out.print("*");
                //打印空格
                for(int j = 1;j <= n-2;j++) {
                    System.out.print(" ");
                }
            }
        }
    }
    //计算分数的值，计算1/1-1/2+1/3-1/4+1/5 …… + 1/99 - 1/100 的值。
    public static void main1(String[] args) {
        //计算分数的值
        double i = 1.0;
        int flg = -1;
        double sum = 0;//
        for (int n = 1; n <= 100; n++) {
            if(n % 2 == 0) {
                sum += flg * i / n;
            }
            else {
                sum += i / n;
            }
        }
        System.out.println(sum);
    }

}
